package com.ctyon.watchmanager.bean;

import android.graphics.drawable.Drawable;

import com.ctyon.common.util.DataUtil;

/**
 * CreateDate：19-7-4 on 上午11:49
 * Describe:
 * Coder: lee
 */
public class ProgramBean {

    private Drawable icon;
    private String cmd;
    private String name;
    private boolean enable;

    public ProgramBean(String cmd, String name, Drawable icon, boolean enable) {
        this.cmd = cmd;
        this.enable = enable;
        this.name = name;
        this.icon = icon;
    }

    public String getCmd() {
        return cmd;
    }

    public void setCmd(String cmd) {
        this.cmd = cmd;
    }

    public Drawable getIcon() {
        return icon;
    }

    public void setIcon(Drawable icon) {
        this.icon = icon;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isEnable() {
        return enable;
    }

    public void setEnable(boolean enable) {
        this.enable = enable;
    }

    @Override
    public String toString() {
        return cmd + "-" + (enable ? "1" : "0");
    }

}
